package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.wemedia.dtos.WmSensitiveDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmSensitive;

/**
 * @author shiminghui
 * @date 2024/12/18 16:34
 * @description: TODO
 */
public interface WmSensitiveService extends IService<WmSensitive> {
    /**
     * 删除敏感词
     *
     * @param id
     * @return
     */
    ResponseResult deleteById(Long id);

    /**
     * 敏感词列表
     *
     * @param wmSensitiveDto
     * @return
     */
    ResponseResult list(WmSensitiveDto wmSensitiveDto);

    /**
     * 新增
     *
     * @param wmSensitive
     * @return
     */
    ResponseResult saveWmSensitive(WmSensitive wmSensitive);

    /**
     * 修改
     *
     * @param wmSensitive
     * @return
     */
    ResponseResult update(WmSensitive wmSensitive);
}
